package com.salefinder.client;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Label;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.Element;

public class PreferenceScreen extends LayoutContainer{

	@Override
	protected void onRender(Element parent, int index) { 
		super.onRender(parent, index);
		this.setLayout(new FitLayout());
		

		ContentPanel cp = new ContentPanel();
		cp.setBodyBorder(true);  
		cp.setHeading("Preferences");  
		cp.setLayout(new FitLayout());  
		cp.setFrame(true);  
		cp.setSize(140, 250);
		
		VerticalPanel vp = new VerticalPanel();
		
		Label l = new Label("<b>My Location</b><br> " +
				"--> Bradford");
		l.setStyleName("myresultCell");
		vp.add(l);
		l = new Label("<b>My list </b>");
		l.setStyleName("myresultCell");
		vp.add(l);
		l = new Label("--> milk");
		l.setStyleName("myresultCell");
		vp.add(l);
		l = new Label("--> Bread");
		l.setStyleName("myresultCell");
		vp.add(l);
		
		cp.add(vp);
		this.add(cp);
		cp.layout();

	}
}
